package com.laolang.shop.modules.product.consts.admin;

/**
 * khl
 *
 * @author khlbat
 * @version 1.0
 * @date 2020/11/4 18:30
 */
public class ProductAttrConst {

    public enum SearchType {
        /**
         *
         */
        YES(1, "是"),
        NO(0, "否");

        private final Integer value;
        private final String desc;

        SearchType(Integer value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        public Integer getValue() {
            return value;
        }

        public String getDesc() {
            return desc;
        }
    }

    public enum ValueType {
        /**
         *
         */
        TXT(1, "文本"),
        BRAND(2, "品牌"),
        COLOR(3, "颜色"),
        SELECT(4, "下拉框"),
        YEAR(5, "年份"),
        MONTH(6, "月份");

        private final Integer value;
        private final String desc;

        ValueType(Integer value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        public Integer getValue() {
            return value;
        }

        public String getDesc() {
            return desc;
        }
    }

    public enum EnableAttr {
        /**
         *
         */
        YES(1, "是"),
        NO(0, "否");

        private final Integer value;
        private final String desc;

        EnableAttr(Integer value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        public Integer getValue() {
            return value;
        }

        public String getDesc() {
            return desc;
        }
    }

    public enum Custom {
        /**
         *
         */
        YES(1, "是"),
        NO(0, "否");

        private final Integer value;
        private final String desc;

        Custom(Integer value, String desc) {
            this.value = value;
            this.desc = desc;
        }

        public Integer getValue() {
            return value;
        }

        public String getDesc() {
            return desc;
        }
    }

}
